package com.diandian.backend.store.param;

import com.diandian.base.boot.starter.exception.DefaultException;

import java.io.Serializable;

public class StoreJingdongHomeStoreTreeAdjustParam implements Serializable {

	private Long id;
	private String targetParentNode;

	public void check() {
		if (id == null) {
			throw new DefaultException("id不能为空");
		}
		if (targetParentNode == null || "".equals(targetParentNode)) {
			throw new DefaultException("目标节点编码不能为空");
		}
	}

	public Long getId() {
		return id;
	}
	public Long setId(Long id) {
		return this.id = id;
	}

	public String getTargetParentNode() {
		return targetParentNode;
	}

	public void setTargetParentNode(String targetParentNode) {
		this.targetParentNode = targetParentNode;
	}
}
